import 'dart:convert';

import 'package:json_annotation/json_annotation.dart';

part 'message_info.g.dart';

@JsonSerializable()
class MessageInfo {
  String cmdType = ''; //命令说明
  String param = '';

  MessageInfo();

  @override
  String toString() {
    return jsonEncode(toJson());
  }

  factory MessageInfo.fromJson(Map<String, dynamic> json) => _$MessageInfoFromJson(json);

  Map<String, dynamic> toJson() => _$MessageInfoToJson(this);
}
